test1 = testRTSP
test2 = testFileSrc
test3 = testUDPSrc
extc=c
ext = cpp
CC = gcc
CPP = g++
targetDir = bin
srcDir = src
#additionlibs = gstapp
gstreamer: TESTUDPSRC

TESTRTSP:
	$(CPP) $(srcDir)/$(test1).$(ext) -o $(targetDir)/$(test1) `pkg-config gstreamer-0.10 --libs --cflags` `pkg-config glib-2.0 --cflags --libs` -L/usr/lib/x86_64-linux-gnu/gstreamer-1.0 -lgstapp-0.10

TESTFILESRC:
	$(CPP) -DPC_TEST $(srcDir)/$(test2).$(ext) -o $(targetDir)/$(test2) `pkg-config gstreamer-0.10 --libs --cflags` `pkg-config glib-2.0 --cflags --libs` -L/usr/lib/x86_64-linux-gnu/gstreamer-1.0 -lgstapp-0.10

TESTUDPSRC:
	$(CC) -g $(srcDir)/$(test3).$(extc) -o $(targetDir)/$(test3) `pkg-config gstreamer-0.10 --libs --cflags` `pkg-config glib-2.0 --cflags --libs` -L/usr/lib/x86_64-linux-gnu/gstreamer-1.0 -lgstapp-0.10

clean:
	rm -rf $(targetDir)/$(test1)
	rm -rf $(targetDir)/$(test2)
	rm -rf $(targetDir)/$(test3)
